package com.neusoft.neuiotms.dcam.workflow.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcam.workflow.model.ZhuanyiSL;

public interface ZhuanyiSLRepository extends JpaRepository<ZhuanyiSL, Long> {

    ZhuanyiSL findByTaskId(String taskId);

    ZhuanyiSL findByWorkOrderNumAndTaskId(String workOrderNum, String taskId);

    List<ZhuanyiSL> findByWorkOrderNum(String workOrderNum);

    ZhuanyiSL findTopByWorkOrderNumOrderByCreateTimeDesc(String workOrderNum);
}
